# 小明爱跑步联系

class Person:

    def __init__(self, name, weight):
        """
        init
        """
        self.name = name
        self.weight = weight

    def __str__(self):
        return "我是 %s 体重 %s" % (self.name, self.weight)

    def run(self):
        self.weight -= 0.5
        print("%s 爱跑步，体重是%.2f公斤" % (self.name, self.weight))
        pass

    def eat(self):
        self.weight += 1
        print("%s 爱吃饭，体重是%.2f公斤" % (self.name, self.weight))
        pass


xiaoming = Person("小明", 81.9)
xiaoming.run()
xiaoming.eat()
xiaoming.eat()
print(xiaoming)

xiaomei = Person("小美", 45)
xiaomei.eat()
xiaomei.eat()
print(xiaomei)
